import time

from 第9章.包的.my_packge.my_time import get_time

# 时间戳
t = time.time()
print(t)

# 结构化时间
t = time.localtime()
print(t)
# 年份 等等 time.struct_time(tm_year=2025, tm_mon=1, tm_mday=15, tm_hour=9, tm_min=23, tm_sec=44, tm_wday=2, tm_yday=15, tm_isdst=0)
print(t.tm_year)

print(time.strftime('%Y:%m:%d  %H:%M:%S', t))
print(time.strftime('%Y:%m:%d  %H:%M:%S'))

#
print(get_time("%Y:%m:%d  %H:%M:%S"))